package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicWhAffDO;
import com.cssy.yd.logic.entity.LogicWhAffStockFinanceDO;
import com.cssy.yd.logic.vo.LogicWhAffVO;
import com.cssy.yd.logic.vo.LogicWhAffVO1;
import com.plat.helper.SearchConditions;

import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2012-12-26
 */
public interface LogicWhAffDAO {

    /**
     * 插入数据
     * @param logicWhAffDO
     * @return 插入数据的主键
     */
    public String insertLogicWhAffDO(LogicWhAffDO logicWhAffDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicWhAffDO
     * @return 查出的记录数
     */
    public Integer countLogicWhAffDOByExample(LogicWhAffDO logicWhAffDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicWhAffDO
     * @return 受影响的行数
     */
    public Integer updateLogicWhAffDO(LogicWhAffDO logicWhAffDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicWhAffDO
     * @return 对象列表
     */
    public List<LogicWhAffDO> findListByExample(LogicWhAffDO logicWhAffDO) throws DataAccessException;

    /**
     * 根据主键获取logicWhAffDO
     * @param id
     * @return logicWhAffDO
     */
    public LogicWhAffDO findLogicWhAffDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicWhAffDOByPrimaryKey(String id) throws DataAccessException;
    
    /**
     * 查询
     * @param 
     * @return LogicWhAffDO
     */
    public List<LogicWhAffDO> find(SearchConditions scs) throws DataAccessException;
    
    /**
     * 查询
     * @param 
     * @return LogicWhAffVO
     */
    public List<LogicWhAffVO> findAll(Map map) throws DataAccessException;
    
    /**
     * 
     * @param LogicWhAffVO
     * @return 
     */
    public Integer countAll(Map map) throws DataAccessException;
    
    /**
     * 查询
     * @param 
     * @return LogicWhAffVO
     */
    public List<LogicWhAffVO1> findAll1(Map map) throws DataAccessException;
    
    /**
     * 
     * @param LogicWhAffVO
     * @return 
     */
    public Integer countAll1(Map map) throws DataAccessException;
    
    /**
     * 
     * @param LogicWhAffVO
     * @return 
     */
    public Integer count(SearchConditions scs) throws DataAccessException;

    public List<LogicWhAffVO> findListBySearchConForDetails(SearchConditions scs)
			throws DataAccessException;

    public Integer findListBySearchConForDetailsCount(SearchConditions scs)
			throws DataAccessException;
    
    public List<LogicWhAffStockFinanceDO> findFinance(Map map) throws DataAccessException;
    
    public Integer countFinance(Map map) throws DataAccessException;
    
    public LogicWhAffStockFinanceDO findInOutBycode(Map map) throws DataAccessException;
    
    public LogicWhAffStockFinanceDO findCKBycode(Map map) throws DataAccessException;
    public List<LogicWhAffVO> findStarQty(Map map) throws DataAccessException;
    public List<LogicWhAffVO> findEndQty(Map map) throws DataAccessException;
    public List<LogicWhAffVO> findInOutQty(Map map) throws DataAccessException;
    
}